
namespace ActivUFRJ.Classes.Geral
{
    public class FormacaoAcademica
    {

        /// <summary>
        /// cria uma nova instancia vazia
        /// </summary>
        public FormacaoAcademica()
        {

        }

        /// <summary>
        /// cria instancia a partir do id
        /// </summary>
        public FormacaoAcademica(int idFormacaoAcademica)
        {
            this.ID = idFormacaoAcademica;
            DBFormacaoAcademica dbFormacaoAcademica = new DBFormacaoAcademica();
            dbFormacaoAcademica.CarregarFormacaoAcademica(this);
        }

        private int id;
        private string descricao;

        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        public string Descricao
        {
            get { return descricao; }
            set { descricao = value; }
        }
	
        public static FormacaoAcademica[] GetListaFormacaoAcademica()
        {
            DBFormacaoAcademica dbFormacaoAcademica = new DBFormacaoAcademica();
            return dbFormacaoAcademica.GetListaFormacaoAcademica();
        }
    }
}
